package com.tom.springboot3demo.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tom.springboot3demo.dto.OneTableDTO;
import com.tom.springboot3demo.mapper.OneTableMapper;
import com.tom.springboot3demo.service.OneTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zx
 * @date 2025年01月06日 17:08
 */
@Service
public class OneTableServiceImpl implements OneTableService {

    @Autowired
    private OneTableMapper oneTableMapper;

    public List<OneTableDTO> testOneToTwoPage(Integer currentPage,Integer size){
        //Page<OneTableDTO> page = new Page<>(currentPage,size);
        return oneTableMapper.testOneToTwoPage();
    }

    @Override
    public List<OneTableDTO> testOneToTwoList() {
        return oneTableMapper.testOneToTwo();
    }
}
